import {Component, OnInit} from '@angular/core'
import {ArticleService} from '../../../service/article.service';


@Component({
  selector: 'ngx-articlegroup',
  styleUrls: ['./articlegroup.component.scss'],
  templateUrl: './articlegroup.component.html',
})
export class ArticlegroupComponent implements OnInit {

  articles: any[];


  constructor(private articleService: ArticleService) {
  }

  ngOnInit(): void {
    this.articleService.getArticleList(1).subscribe(res => {
      this.articles = res;
    })
  }
}

